import logging

logging.basicConfig(
    level=logging.WARNING,
    format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s',
    datefmt='%a, %d %b %Y %H:%M:%S'
)

logging.debug('This is debug message')
logging.info('This is info message')
logging.warning('This is warning message')
